CREATE TABLE [Upload].[Uploads]
(
[UploadId] [int] NOT NULL IDENTITY(1, 1),
[SourceId] [int] NOT NULL,
[UploadDate] [date] NOT NULL,
[UploadBy] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UploadNote] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [Upload].[Uploads] ADD CONSTRAINT [PK_Uploads_UploadId] PRIMARY KEY CLUSTERED  ([UploadId]) ON [PRIMARY]
GO
ALTER TABLE [Upload].[Uploads] ADD CONSTRAINT [FK_Uploads_SourceId] FOREIGN KEY ([SourceId]) REFERENCES [Upload].[Sources] ([SourceId])
GO
